export default function myInstanceOf(left, right) {
    if (right === null) return false
    if (left !== 'object' && left !== 'function') return false
    if (right !== 'object' && right !== 'function') {
        throw new TypeError('Right-Side must be an Object')
    }
    let proto = Object.getPropertyOf(left)
    while(proto) {
        if (proto === right.prototype) return true
        proto = Object.getPropertyOf(proto)
    }
    return false
}